package ibmetp.mis.controller.user;

import ibmetp.mis.service.DeptService;
import ibmetp.mis.serviceImpl.DeptServiceImpl;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 任命部门经理
 * @author LAN DABIN
 * @create 2011-10-10
 */
public class UserMgrServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
  
    public UserMgrServlet() {
        super();
       
    }

	
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
	  System.out.println();
	  Long mgrId=Long.valueOf(request.getParameter("mgrId"));
	  Long deptId=Long.valueOf(request.getParameter("deptId"));
	  DeptService ds=new DeptServiceImpl();
	  ds.setManager(deptId, mgrId);
	}

}
